<?php
 /**
  *url地址规则
  * keyrule 关键字空格的编码方式
  *step 分页规则
  *pg 得到数据的获取
  *source 1:google;2,baidu;3,sougou;4,soso;5,youdao
  * 
  * 华为：http://www.google.com/cse?cx=001308056341376153729%3Aj0hvft_-la8&ie=UTF-8&q=dd&gsc.q=dd&gsc.page=1#gsc.tab=0&gsc.q=%E6%96%B9%E6%B3%95&gsc.page=3
  * 115：cse?cx=013389989597993899898%3A-oi43qbj26y
  */
 $search_urls=array( 	
 		array(
 				urls=>'http://www.google.com.hk/search?sclient=psy-ab&hl=zh-CN&site=&source=hp&q=filetype:pdf+[KEYWORDS]&start=[PAGE]',
 				keyrule=>'+',
 				step=>10,
 				source=>1,
 				pq=>'.g',
 				title=>'a[class=l]',
 				url=>'h3 a',
 				remarks=>'span[class=st]',
 				state=>1			
 				),
 	  	array(
 				urls=>'http://www.sogou.com/web?query=filetype%3Apdf+[KEYWORDS]&page=[PAGE]',
 				keyrule=>'+',
 				step=>1,
 	  			source=>3,
 				pq=>'.rb',
 				title=>'h3 a',
 				url=>'h3 a', 				
 				remarks=>'div[class=ft]', 				
 				state=>1	
 				), 
 		array(
	 		urls=>'http://www.soso.com/q?w=filetype%3Apdf%20[KEYWORDS]&pg=[PAGE]',
	 		keyrule=>'urlencode',
	 		step=>1,
	 		source=>4,
	 		pq=>'li',
	 		title=>'h3 a',
	 		url=>'h3 a',
	 		remarks=>'p[class=ds]',	 			
	 		state=>0
 			),
 		array(
			urls=>'http://www.youdao.com/search?q=filetype%3Apdf+[KEYWORDS]&start=[PAGE]',
			keyrule=>'+',
			step=>10,
			source=>5,
			pq=>'li',
			title=>'h3 a',
			url=>'h3 a',
			remarks=>'div p:eq(1)',
			state=>0
 			)
 			
			
 		);
	

	
	
	
